package com.vcc.data.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.vcc.data.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 角色
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
@Table(value = "vcc_role")
@Accessors(chain = true)
public class Role extends BaseEntity implements Serializable {

    @Column(comment = "用户Id", value = "user_id")
    private Long userId;
    /**
     * 权限
     */
    @Column(comment = "代码", value = "code")
    private String code;

    @Column(comment = "名称", value = "name")
    private String name;

    @Column(comment = "状态", value = "status")
    private Integer status;

    @Column(comment = "是否有客户初始化角色", value = "has_client_into_role")
    private Boolean hasClientIntoRole;

    @Column(comment = "客户端是否可以修改", value = "has_client_update")
    private Boolean hasClientUpdate;

    @Column(comment = "是否有所有数据", value = "has_all_data")
    private Boolean hasAllData;

}
